﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Castle.ActiveRecord;

namespace ZDSoft.QLMS.Entity.Rules
{
    [ActiveRecord]
    public class TypeRule : EntityBase<TypeRule>
    {
        [BelongsTo("TypeID")]
        public Type Type { get; set; }

        [Property]
        public double Weight { get; set; }

        //该题型规则属于的试卷规则
        [BelongsTo("TestPaperRuleID")]
        public TestPaperRule TestPaperRule { get; set; }

        //该题型包含的知识点
        [HasMany(typeof(KnowledgePointRule), ColumnKey = "TypeRuleID")]
        public IList<KnowledgePointRule> KnowledgePointRules { get; set; }
    }
}
